package com.chinacreator.common;

import java.util.List;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.frameworkset.orm.transaction.TransactionException;

public class QuartzJobSendData implements Job {
	SendMessage sendMessage = new SendMessage();

	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		List list = XmlUtil.getBusiCodeOfPlatfrom();
		for (int i = 0; i < list.size(); i++) {
			try {
				sendMessage.send((String) list.get(i));
			} catch (TransactionException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}

}
